package com.liao.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;


/**
 * @author lzp
 * @version 1.0
 * lzpnb!
 */
@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {

    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),

    LOGIN_ERROR(50200,"用户id或者密码错误"),
    MOBILE_ERROR(50201,"手机号码格式不正确"),
    BING_ERROR(500222,"参数绑定异常"),
    MOBILE_NOT_EXIST(50203,"手机号码不存在"),
    ENTRY_STOCK(50233,"库存不足"),
    PASSWORD_UPDATE_FAIL(50235,"密码更新失败"),
    REPEAT_ERROR(50234,"该商品每人限购一件"),
    REQUEST_ILLEGAL(50244,"请求非法"),
    SESSION_ERROR(50344,"用户信息有误"),
    SEK_KILL_WAIT(50345,"排队中"),
    CAPTCHA_ERROR(50388,"验证码错误"),
    ACCESS_LIMIT_REACHED(50399,"访问过于频繁，请稍后再试"),
    SEC_KILL_RETRY(50400,"本次抢购失败，请继续抢购")
    ;



    private final Integer code;
    private final String message;
}
